  /**
   * Generate time : 2016-11-15 16:35:57
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cp.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCPAttachmanag 
 *  
 */
public class ZMCPAttachmanag extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdProduceplanId = " ";		/* 生产计划ID*/
	private String fdMiningName = " ";		/* 矿井名称*/
	private String fdMiningId = " ";		/* 矿井ID*/
	private String fdCreateDepartmentId = " ";		/* 编制部门ID*/
	private String fdCreateDepartment = " ";		/* 编制部门*/
	private String fdCreatorId = " ";		/* 编制人ID*/
	private String fdCreator = " ";		/* 编制人*/
	private String fdPulisherId = " ";		/* 发布人ID*/
	private String fdPulisher = " ";		/* 发布人*/
	private String fdTitle = " ";		/* 计划名称*/
	private String fdPlanStatus = " ";		/* 计划状态*/
	private String fdPlanType = " ";		/* 计划类型*/
	private String fdPlanYear = " ";		/* 计划年份*/
	private String fdPlanMonth = " ";		/* 计划月份*/
	private String fdDocid = " ";		/* 附件ID*/
	private String fdCreateDate = " ";		/* 编制日期*/
	private String fdRemark ="";
	private BigDecimal fdShow = new BigDecimal("0");/*生产计划中显示*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
	eiColumn = new EiColumn("fdShow");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("显示");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProduceplanId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产计划ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDepartment");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("编制部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreatorId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreator");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPulisherId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("发布人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPulisher");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("发布人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTitle");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("计划名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanStatus");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("计划状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanType");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("计划类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("计划年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanMonth");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("计划月份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDocid");
	eiColumn.setFieldLength(35);	
	eiColumn.setDescName("附件ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("编制日期");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCPAttachmanag() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdProduceplanId - 生产计划ID
	 * @return the fdProduceplanId
	 */
	public String getFdProduceplanId() {
		return this.fdProduceplanId;
	}
	
	/**
	 * set the fdProduceplanId - 生产计划ID
	 */
	public void setFdProduceplanId(String fdProduceplanId) {
		this.fdProduceplanId = fdProduceplanId;
	}
	
	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	
	/**
	 * get the fdMiningId - 矿井ID
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿井ID
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	
	/**
	 * get the fdCreateDepartmentId - 编制部门ID
	 * @return the fdCreateDepartmentId
	 */
	public String getFdCreateDepartmentId() {
		return this.fdCreateDepartmentId;
	}
	
	/**
	 * set the fdCreateDepartmentId - 编制部门ID
	 */
	public void setFdCreateDepartmentId(String fdCreateDepartmentId) {
		this.fdCreateDepartmentId = fdCreateDepartmentId;
	}
	
	/**
	 * get the fdCreateDepartment - 编制部门
	 * @return the fdCreateDepartment
	 */
	public String getFdCreateDepartment() {
		return this.fdCreateDepartment;
	}
	
	/**
	 * set the fdCreateDepartment - 编制部门
	 */
	public void setFdCreateDepartment(String fdCreateDepartment) {
		this.fdCreateDepartment = fdCreateDepartment;
	}
	
	/**
	 * get the fdCreatorId - 编制人ID
	 * @return the fdCreatorId
	 */
	public String getFdCreatorId() {
		return this.fdCreatorId;
	}
	
	/**
	 * set the fdCreatorId - 编制人ID
	 */
	public void setFdCreatorId(String fdCreatorId) {
		this.fdCreatorId = fdCreatorId;
	}
	
	/**
	 * get the fdCreator - 编制人
	 * @return the fdCreator
	 */
	public String getFdCreator() {
		return this.fdCreator;
	}
	
	/**
	 * set the fdCreator - 编制人
	 */
	public void setFdCreator(String fdCreator) {
		this.fdCreator = fdCreator;
	}
	
	/**
	 * get the fdPulisherId - 发布人ID
	 * @return the fdPulisherId
	 */
	public String getFdPulisherId() {
		return this.fdPulisherId;
	}
	
	/**
	 * set the fdPulisherId - 发布人ID
	 */
	public void setFdPulisherId(String fdPulisherId) {
		this.fdPulisherId = fdPulisherId;
	}
	
	/**
	 * get the fdPulisher - 发布人
	 * @return the fdPulisher
	 */
	public String getFdPulisher() {
		return this.fdPulisher;
	}
	
	/**
	 * set the fdPulisher - 发布人
	 */
	public void setFdPulisher(String fdPulisher) {
		this.fdPulisher = fdPulisher;
	}
	
	/**
	 * get the fdTitle - 计划名称
	 * @return the fdTitle
	 */
	public String getFdTitle() {
		return this.fdTitle;
	}
	
	/**
	 * set the fdTitle - 计划名称
	 */
	public void setFdTitle(String fdTitle) {
		this.fdTitle = fdTitle;
	}
	
	/**
	 * get the fdPlanStatus - 计划状态
	 * @return the fdPlanStatus
	 */
	public String getFdPlanStatus() {
		return this.fdPlanStatus;
	}
	
	/**
	 * set the fdPlanStatus - 计划状态
	 */
	public void setFdPlanStatus(String fdPlanStatus) {
		this.fdPlanStatus = fdPlanStatus;
	}
	
	/**
	 * get the fdPlanType - 计划类型
	 * @return the fdPlanType
	 */
	public String getFdPlanType() {
		return this.fdPlanType;
	}
	
	/**
	 * set the fdPlanType - 计划类型
	 */
	public void setFdPlanType(String fdPlanType) {
		this.fdPlanType = fdPlanType;
	}
	
	/**
	 * get the fdPlanYear - 计划年份
	 * @return the fdPlanYear
	 */
	public String getFdPlanYear() {
		return this.fdPlanYear;
	}
	
	/**
	 * set the fdPlanYear - 计划年份
	 */
	public void setFdPlanYear(String fdPlanYear) {
		this.fdPlanYear = fdPlanYear;
	}
	
	/**
	 * get the fdPlanMonth - 计划月份
	 * @return the fdPlanMonth
	 */
	public String getFdPlanMonth() {
		return this.fdPlanMonth;
	}
	
	/**
	 * set the fdPlanMonth - 计划月份
	 */
	public void setFdPlanMonth(String fdPlanMonth) {
		this.fdPlanMonth = fdPlanMonth;
	}
	
	/**
	 * get the fdDocid - 附件ID
	 * @return the fdDocid
	 */
	public String getFdDocid() {
		return this.fdDocid;
	}
	
	/**
	 * set the fdDocid - 附件ID
	 */
	public void setFdDocid(String fdDocid) {
		this.fdDocid = fdDocid;
	}
	
	/**
	 * get the fdCreateDate - 编制日期
	 * @return the fdCreateDate
	 */
	public String getFdCreateDate() {
		return this.fdCreateDate;
	}
	
	/**
	 * set the fdCreateDate - 编制日期
	 */
	public void setFdCreateDate(String fdCreateDate) {
		this.fdCreateDate = fdCreateDate;
	}
	
	public BigDecimal getFdShow() {
		return fdShow;
	}
	public void setFdShow(BigDecimal fdShow) {
		this.fdShow = fdShow;
	}
	public String getFdRemark() {
		return fdRemark;
	}
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdProduceplanId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProduceplanId")), fdProduceplanId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdCreateDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartmentId")), fdCreateDepartmentId));
		setFdCreateDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartment")), fdCreateDepartment));
		setFdCreatorId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreatorId")), fdCreatorId));
		setFdCreator(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreator")), fdCreator));
		setFdPulisherId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPulisherId")), fdPulisherId));
		setFdPulisher(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPulisher")), fdPulisher));
		setFdTitle(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTitle")), fdTitle));
		setFdPlanStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanStatus")), fdPlanStatus));
		setFdPlanType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanType")), fdPlanType));
		setFdPlanYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanYear")), fdPlanYear));
		setFdPlanMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanMonth")), fdPlanMonth));
		setFdDocid(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDocid")), fdDocid));
		setFdCreateDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDate")), fdCreateDate));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdShow(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdShow")), fdShow));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdProduceplanId",StringUtils.toString(fdProduceplanId, eiMetadata.getMeta("fdProduceplanId")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdCreateDepartmentId",StringUtils.toString(fdCreateDepartmentId, eiMetadata.getMeta("fdCreateDepartmentId")));	
			map.put("fdCreateDepartment",StringUtils.toString(fdCreateDepartment, eiMetadata.getMeta("fdCreateDepartment")));	
			map.put("fdCreatorId",StringUtils.toString(fdCreatorId, eiMetadata.getMeta("fdCreatorId")));	
			map.put("fdCreator",StringUtils.toString(fdCreator, eiMetadata.getMeta("fdCreator")));	
			map.put("fdPulisherId",StringUtils.toString(fdPulisherId, eiMetadata.getMeta("fdPulisherId")));	
			map.put("fdPulisher",StringUtils.toString(fdPulisher, eiMetadata.getMeta("fdPulisher")));	
			map.put("fdTitle",StringUtils.toString(fdTitle, eiMetadata.getMeta("fdTitle")));	
			map.put("fdPlanStatus",StringUtils.toString(fdPlanStatus, eiMetadata.getMeta("fdPlanStatus")));	
			map.put("fdPlanType",StringUtils.toString(fdPlanType, eiMetadata.getMeta("fdPlanType")));	
			map.put("fdPlanYear",StringUtils.toString(fdPlanYear, eiMetadata.getMeta("fdPlanYear")));	
			map.put("fdPlanMonth",StringUtils.toString(fdPlanMonth, eiMetadata.getMeta("fdPlanMonth")));	
			map.put("fdDocid",StringUtils.toString(fdDocid, eiMetadata.getMeta("fdDocid")));	
			map.put("fdCreateDate",StringUtils.toString(fdCreateDate, eiMetadata.getMeta("fdCreateDate")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			map.put("fdShow",StringUtils.toString(fdShow, eiMetadata.getMeta("fdShow")));
			
		return map;
	
	}
}